package com.goldman.aplt.mq.model;

import com.goldman.aplt.base.constant.ApConstants;
import com.goldman.aplt.base.type.MsgEnumType;
import com.goldman.aplt.util.ApSeqUtil;
import com.goldman.message.common.event.MessageModel;

import java.io.Serializable;

public class MsgJoinMkActiveDto<T> extends MessageModel implements Serializable {

    private MsgJoinMkActiveDto() {
    }

    public MsgJoinMkActiveDto(final JoinMkActiveDto data){
        super(ApSeqUtil.genSeq(ApConstants.CALL_SEQ_CODE),
                MsgEnumType.E_MSGTYPE.JOIN_ACTIVE.getValue(),
                data, MsgEnumType.E_TOPIC.MARKET_TOPIC.getId());
    }


    public MsgJoinMkActiveDto(final JoinMkActiveDto data, String msgId){
        super(msgId, MsgEnumType.E_MSGTYPE.JOIN_ACTIVE.getValue(),
                data, MsgEnumType.E_TOPIC.MARKET_TOPIC.getId());
    }
}
